interpolation method in numerical methods